package com.CampusLife.dao;



import com.CampusLife.bean.News;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface INewsDao {
    List<News> queryAll();

    News queryById(Integer nid);

    void add(News news);

    void update(News nid);

    void delete(Integer nid);

    List<News> queryByTitle(@Param("title") String title);

    List<News>  getOrder();

   int queryViewNumber(Integer nid);

   void updateviewNumber (News news);
}
